package com.joysuch.wwyt.bp.repository;

import com.joysuch.wwyt.bp.entity.BpWorkSafetyAuditTemplate;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface BpWorkSafetyAuditTemplateDao extends JpaRepository<BpWorkSafetyAuditTemplate,Long> {

    List<BpWorkSafetyAuditTemplate> findByType(String type);

    List<BpWorkSafetyAuditTemplate> findByTypeAndWorkLevel(String type, Integer workLevel);
}
